package io;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;

public class BufferedReaderTest {
    public static void main(String[] args) {
        File file = new File("D:\\test\\Test.txt");
        try {
            FileReader fileReader = new FileReader(file);
            BufferedReader bufferedReader = new BufferedReader(fileReader);
            String value = bufferedReader.readLine();
            while(value != null){
                System.out.println(value);
                value = bufferedReader.readLine();
            }

            fileReader.close();
            bufferedReader.close();
        } catch (java.io.IOException e) {
            e.printStackTrace();
        } finally {

        }
    }
}
